<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
		<title>审批详情</title>
		<link rel="stylesheet" type="text/css" href="../static/azxcrm/css/wap/aui.css" th:href="@{/azxcrm/css/wap/aui.css}"/>
		<link rel="stylesheet" type="text/css" href="../static/azxcrm/css/wap/approve2.css" th:href="@{/azxcrm/css/wap/approve2.css}"/>
		<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_835360_5n3z54a5m1.css"/>
	</head>
	<body>
		<header class="aui-bar aui-bar-nav">
			 <a href="javascript:history.back(-1)"  class="aui-pull-left aui-btn">
	       		 <span class="iconfont icon-fanhui1">返回</span>
	    	</a>
		    <div class="aui-title">审批详情</div>
		</header>
		<section class="aui-grid aui-margin-b-15">	
			<div class="aui-content aui-margin-b-15">
			    <ul class="aui-list aui-list-in">
			        <li class="aui-list-item">
			            <div class="aui-list-item-inner">
			            	<div class="clearfix">
			            		<div class="aui-list-item-title">审批类型：</div>
			            		<div class="aui-text" th:if="${order.auditType} == 1">成单</div>	
			                	<div class="aui-text" th:if="${order.auditType} == 2">退单</div>
			            	</div>			                
			            </div>
			        </li>
			        <li class="aui-list-item">
			            <div class="aui-list-item-inner">
			            	<div class="clearfix">
				                <div class="aui-list-item-title">审批状态：</div>
				                <div class="aui-text auditStatus" th:if="${order.auditStatus} == 0">未审核</div>
				                <div class="aui-text auditStatus" th:if="${order.auditStatus} == 1">审核中</div>
				                <div class="aui-text auditStatus" th:if="${order.auditStatus} == 2">审核通过</div>
				                <div class="aui-text auditStatus" th:if="${order.auditStatus} == 3">审核被拒</div>
				            </div>    
			            </div>
			        </li>	
			         <li class="aui-list-item">
			            <div class="aui-list-item-inner">
			            	<div class="clearfix">
				                <div class="aui-list-item-title">订单编号：</div>
				                <div class="aui-text" th:text="${order.orderNum}"></div>
				            </div>    
			            </div>
			        </li>	
			        <li class="aui-list-item">
			            <div class="aui-list-item-inner">
			            	<div class="clearfix">
				                <div class="aui-list-item-title">订单类型：</div>
				                <div class="aui-text" th:text="${order.typeName}"></div>
				            </div>    
			            </div>
			        </li>
			         <li class="aui-list-item">
			            <div class="aui-list-item-inner">
			            	<div class="clearfix">
				                <div class="aui-list-item-title">发起人：</div>
				                <div class="aui-text" th:text="${order.salesUserName}"></div>
				            </div>    
			            </div>
			        </li>
			    </ul>
			</div>
			
			<!-- <div class="aui-content aui-margin-b-15 g-approve2">
			    <ul class="aui-list aui-list-in">
			        <li class="aui-list-item">
			            <div class="s-order">
			            	<div class="g-radius pos-rel"><span class="s-little-radius pos-ab"></span></div>
			                <div class="s-approve">发起人</div>
			                <div class="s-approve-detail" th:text="${order.customerClue.customerName}"></div>
			                <div class="u-time" th:text="${order.createTime}"></div>
			            </div>
			        </li>
			        <li class="g-line"></li>
			        <li class="aui-list-item">
			            <div class="s-order2" >
			            	<div class="s-radius pos-rel"><span class="s-little-radius pos-ab"></span></div>
			                <div class="s-approve">部门主管</div>
			                <div class="s-approve-detail">
			                	<span>张三</span>
			                	<a class="s-wait">
			                		<span th:if="${order.auditStatus} == 0">未审核</span>
			                		<span th:if="${order.auditStatus} == 1">审核中</span>
			                		<span th:if="${order.auditStatus} == 2">审核通过</span>
			                		<span th:if="${order.auditStatus} == 3">审核被拒</span>
			                	</a>
			                </div>
			                <div class="u-time"></div>
			            </div>
			        </li>
			        <li class="g-line"></li>
			        <li class="aui-list-item">
			            <div class="s-order3">
			            	<div class="s-radius pos-rel"><span class="s-little-radius pos-ab"></span></div>
			                <div class="s-approve">财务</div>
			                <div class="s-approve-detail">
			                	<span th:text="${order.salesUserName}"></span>
			                	<a class="s-wait">
			                		<span th:if="${order.auditStatus} == 0">未审核</span>
			                		<span th:if="${order.auditStatus} == 1">审核中</span>
			                		<span th:if="${order.auditStatus} == 2">审核通过</span>
			                		<span th:if="${order.auditStatus} == 3">审核被拒</span>
			                	</a>	
			                </div>
			                <div class="u-time" th:if="${order.auditStatus} == 2 or ${order.auditStatus} == 3">
			                	<span th:text="${order.updateTime}"></span>
			                </div>
			            </div>
			        </li>
			    </ul>
			</div> -->
		</section>
	</body>
</html>
<script>
		var typeName = document.getElementsByClassName('auditStatus')[0].innerText;
		if(typeName=="审核中"){
			typeName=0;
		}else if(typeName=="审核通过"){
			typeName=1;
		}else{
			typeName=2;
		}
		sessionStorage.setItem("order",typeName);
</script>